package com.example.springdataneo4jdemo.repo;

import com.example.springdataneo4jdemo.domain.Person;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PersonRepository extends Neo4jRepository<Person, Long> {
    // 可以自定义查询方法
    List<Person> findByName(String name);
}
